import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/memberlevels',
  component: Layout,
  redirect: '/memberlevels/index',
  name: 'memberlevels',
  meta: {
    title: '会员级别',
    icon: 'icon-park-twotone:vip',
  },
  children: [
    {
      path: 'index',
      name: 'memberlevelsIndex',
      component: () => import('@/views/memberlevels/index.vue'),
      meta: {
        title: '会员级别',
        menu: false,
        breadcrumb: false,
        activeMenu: '/memberlevels',
      },
    },
    {
      path: 'detail',
      name: 'memberlevelsDetail',
      component: () => import('@/views/memberlevels/detail.vue'),
      meta: {
        title: '运费模板配置',
        auth: ['permission.browse'],
        menu: false,
        activeMenu: '/memberlevels',
      },
    },
  ],
}

export default routes
